﻿@{
    ViewBag.Title = "Form";
    Layout = "~/Views/Shared/_ManufactureList.cshtml";
}
<script type="text/javascript">
    $(function () {
        initControl();
        gridList();
    });
    function initControl() {
        $('select').bindSelect();
    }
    function gridList() {
        var $gridList = $("#gridList");
        $gridList.dataGrid({
            //url: "/SystemManage/User/GetGridJson",
            height: $(window).height() - 118,
            colModel: [
                { label: '单位', name: '', width: 120, align: 'center' },
                { label: '科室', name: '', width: 120, align: 'center' },
                { label: '操作人员', name: '', width: 120, align: 'center' },
                { label: '执行日期', name: '', width: 80, align: 'center' },
                { label: '执行时间', name: '', width: 80, align: 'center' },
                { label: '结束日期', name: '', width: 80, align: 'center' },
                { label: '结束时间', name: '', width: 80, align: 'center' },
                { label: '说明', name: '', width: 180, align: 'center' }
            ],
            pager: "#gridPager",
            sortname: 'F_DepartmentId asc,F_CreatorTime desc',
            viewrecords: true
        });
        $("#btn_search").click(function () {
            $gridList.jqGrid('setGridParam', {
                postData: { keyword: $("#txt_keyword").val() },
            }).trigger('reloadGrid');
        });
    }
    function btn_add() {
        $.detailOpen({
            id: "Detail",
            title: "",
            url: "/MainData/Accessories/SupplierListInput"
        });
    }
</script>
<div id="layout" style="height: 100%; width: 100%;">
    <form id="form1">
        <div style="padding: 12px 0 5px 0; padding-left: 15px; border-bottom: 1px solid #ccc; " class="line-table input-width-185">
            <div class="btn-group" style="margin-top:-9px;">
                执行单位<br />
                <select id="" name="" class="form-control">
                    <option value="">&nbsp;</option>
                </select>
                 &nbsp;
            </div>
            <div class="btn-group" style="margin-top:-9px;">
                部门科室<br />
                <select id="" name="" class="form-control">
                    <option value="">&nbsp;</option>
                </select>
                 &nbsp;
            </div>
            <div class="btn-group" style="">
                <a id="" class="btn btn-primary center-block" onclick=""><span class="glyphicon glyphicon-search"></span> 检索</a>
            </div>
            <div class="btn-group" style="float:right;">
                <a id="" class="btn btn-primary center-block" onclick=""><span class="glyphicon glyphicon-refresh"></span> 刷新</a>
                <a id="" class="btn btn-primary center-block" onclick=""><span class="glyphicon glyphicon-trash"></span> 清除</a>
            </div>
        </div>
    </form>
    <div style="">
        <table id="gridList"></table>
        <div id="gridPager"></div>
    </div>
</div>

